package com.zstu.mall.entity;

import com.zstu.mall.common.BaseEntity;
import java.io.Serializable;

import java.util.Date;
import javax.persistence.*;

/**
 * @author     : wuyc
 * @description: logging
 * @date       : Created in 2019/11/24
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Table(name = "logging")
public class Logging extends BaseEntity implements Serializable {

	/**
	 * null
	 * default value: ' '
	 */
	@Column(name = "user_id", nullable = false,length = 255)
	private String userId;

	/**
	 * 商品,逗号分隔
	 * default value: ' '
	 */
	@Column(name = "product_id", nullable = false,length = 255)
	private String productId;

	/**
	 * 活动,逗号分隔
	 * default value: ' '
	 */
	@Column(name = "activity_id", nullable = false,length = 255)
	private String activityId;

	/**
	 * 流水备用字段
	 * default value: ' '
	 */
	@Column(name = "string1", nullable = false,length = 255)
	private String string1;

	/**
	 * 流水备用字段
	 * default value: ' '
	 */
	@Column(name = "string2", nullable = false,length = 255)
	private String string2;

	/**
	 * 流水备用字段
	 * default value: ' '
	 */
	@Column(name = "string3", nullable = false,length = 255)
	private String string3;

	public Logging() {
		super(); 
		super.status = "1"; 
		super.remark = " "; 
		super.gmtCreate = new Date(); 
		super.gmtModified = new Date(); 
		this.userId = " ";
		this.productId = " ";
		this.activityId = " ";
		this.string1 = " ";
		this.string2 = " ";
		this.string3 = " ";
	}
	
	public String getUserId() {
		return this.userId;
	}
	
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public String getProductId() {
		return this.productId;
	}
	
	public void setProductId(String productId) {
		this.productId = productId;
	}
	
	public String getActivityId() {
		return this.activityId;
	}
	
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}
	
	public String getString1() {
		return this.string1;
	}
	
	public void setString1(String string1) {
		this.string1 = string1;
	}
	
	public String getString2() {
		return this.string2;
	}
	
	public void setString2(String string2) {
		this.string2 = string2;
	}
	
	public String getString3() {
		return this.string3;
	}
	
	public void setString3(String string3) {
		this.string3 = string3;
	}
}
